package com.zjw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjw.annotation.domain.ResponseResult;
import com.zjw.annotation.domain.dto.SaveArticleDto;
import com.zjw.annotation.domain.dto.UpdateArticleDto;
import com.zjw.annotation.domain.entity.Article;

import java.util.List;

/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2023-12-11 16:40:42
 */
public interface ArticleService extends IService<Article> {


    ResponseResult getHotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleById(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult saveArticle(SaveArticleDto saveArticleDto);

    ResponseResult getAllArticleList(Long pageNum, Long pageSize, String title, String summary);

    ResponseResult getEditArticleById(Long id);

    ResponseResult updateArticle(UpdateArticleDto updateArticleDto);

    ResponseResult deleteArticleList(List<Long> idList);
}

